﻿@model IEnumerable<Guline.SupportCMS.Models.Object.MenuItem>
<nav>
    <ul class="sf-menu">
        <li class="current colordefault home_class"><a href="@Url.Action("Index", "Home")"><i class="icon-home"></i></a></li>
        @foreach (var menu in Model)
        { 
            <li class="@menu.ColorStyle.Value">
                <a href="@menu.Menu_URL" title="@menu.Name">@menu.Name</a>
                @if (menu.Childrens.Count > 0)
                { 
                    <ul>
                        @foreach(var submenu in menu.Childrens)
                        {
                            <li><a href="@submenu.Menu_URL" title="@submenu.Menu_URL">@submenu.Name</a></li>
                        }
                    </ul>
                }
            </li>
        }
      
    </ul>
    <!-- /menu -->
</nav>
<!-- /nav -->
